package byx.container.core;

/**
 * 封装对象的注册信息
 */
public class RegisterInfo {
    private final String id;
    private final Class<?> type;
    private final int order;
    private final ObjectFactory<?> factory;

    public RegisterInfo(String id, Class<?> type, int order, ObjectFactory<?> factory) {
        this.factory = factory;
        this.type = type;
        this.id = id;
        this.order = order;
    }

    public String getId() {
        return id;
    }

    public Class<?> getType() {
        return type;
    }

    public int getOrder() {
        return order;
    }

    public ObjectFactory<?> getFactory() {
        return factory;
    }
}
